package domain

import (
	"context"
)

type Repository interface {
	PutOnShelves(ctx context.Context, product *Product) error
	GetProduct(ctx context.Context, id int) (*Product, error)
	GetPage(ctx context.Context, pageIndex int, pageSize int) (list *[]Product, count int, err error)
	PutOffShelves(ctx context.Context, id int) error
	UpdateProduct(ctx context.Context, product *Product) error
}
